﻿<UserControl x:Class="SimCityPak.Views.RW4SectionViews.VertexValueViews.ViewColorElement"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:sc="clr-namespace:SimCityPak.Views.RW4SectionViews.VertexValueViews"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300" DataContextChanged="UserControl_DataContextChanged" Loaded="UserControl_Loaded">

    <ComboBox Name="cbColorPicker" SelectedValue="{Binding SelectedIndex, RelativeSource={RelativeSource AncestorType=UserControl}, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}">
        <ComboBox.ItemTemplate>
            <DataTemplate>
                <sc:ViewColorElementItem DataContext="{Binding}" Padding="2" />
            </DataTemplate>
        </ComboBox.ItemTemplate>
    </ComboBox>

</UserControl>
